package com.yzjs.dao.dataInfo;

import com.yzjs.entity.dataInfo.DataInfoEntity;
import com.yzjs.common.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * 上链数据表
 *
 * @author dingjiahui
 * @email sunlightcs@gmail.com
 * @date 2021-10-19 13:44:28
 */
@Mapper
public interface DataInfoMapper extends BaseMapper<DataInfoEntity> {

    //更具上链唯一数据标识查询记录
    DataInfoEntity selectByIdentificationCode(String identificationCode);

    //添加blockHash
    void updateBlockHashByBaseKey(@Param("baseKey") String baseKey, @Param("blockHash") String blockHash);

    //符合条件查询
    DataInfoEntity selectByParams(@Param("identificationCode") String identificationCode,@Param("uniqueKeyValue") String uniqueKeyValue);


}
